package com.wechatapp.mengyao.poetry.service;

import com.wechatapp.mengyao.poetry.core.PageResult;
import com.wechatapp.mengyao.poetry.dto.ClearPlaybackHistoryDTO;
import com.wechatapp.mengyao.poetry.dto.UpdatePlayBackHistoryDTO;
import com.wechatapp.mengyao.poetry.entity.PlaybackHistory;
import com.wechatapp.mengyao.poetry.vo.PlaybackHistoryView;

import java.util.List;
import java.util.Map;

/**
 * @author yanghuaxu
 * @date 2025/7/11 16:12
 */
public interface PlaybackHistoryService {

    PageResult<PlaybackHistoryView> getCurrentUserPlaybackHistory(Map<String, String> map);

    PageResult<PlaybackHistoryView> getPlaybackHistoryByUserId(Map<String, String> map);

    PlaybackHistory getMediaPlayHistory(Long userId, Long mediaId);

    void updateUserPlaybackHistory(UpdatePlayBackHistoryDTO updatePlayBackHistory);

    int clearPlaybackHistory(ClearPlaybackHistoryDTO clearPlaybackHistory);

}
